package util

import (
	"net/http"

	"mall/service/forum/api/internal/types"
)

func SetHeaders(w http.ResponseWriter, headers []*types.Header) http.ResponseWriter {
	for _, header := range headers {
		w.Header().Set(header.Key, header.Value)
	}

	return w
}
